<!DOCTYPE html>
<html>
<head>
	<title></title>
	<script src="easeljs-0.7.1.min.js" type="text/javascript"></script>
	<script src="tweenjs-0.5.1.min.js" type="text/javascript"></script>
</head>
<body>
<canvas  id="canvas" width="600" height="600" style="border:1px solid #000"></canvas>


</body>
</html>

<script type="text/javascript">
	var stage;
	function init() {
		stage = new createjs.Stage("canvas");
		createjs.Ticker.addEvenstener('tick',function(){
			stage.update()
		})
		createjs.Ticker.setFPS(60);
		start()
	}
	function start(){
		var text = new createjs.Text("游戏结束","20px Arail","#ff7700");
		text.textBaseline="middle";
		text.textAlign="center";
		text.x=300;
		text.y=300;
		stage.addChild(text)
		createjs.Tween.get(text).wait(1000).to({y:500,alpha:0.0},2000,createjs.Ease.quadOut)
	}
</script>